package custom;

import org.atmosphere.annotation.Processor;
import org.atmosphere.config.AtmosphereAnnotation;
import org.atmosphere.cpr.AtmosphereFramework;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by alex on 15-1-13.
 */
@AtmosphereAnnotation(Config.class)
public class SampleConfig  implements Processor<Object> {

    private final Logger logger = LoggerFactory.getLogger(SampleConfig.class);
    
    @Override
    public void handle(AtmosphereFramework atmosphereFramework, Class<Object> annotatedCalss) {
        logger.info("Custom annotation {} discovered ,Start the chat sample",
                annotatedCalss.getAnnotation(Config.class));
    }
}
